home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / DModalStuffData.cp < prev    next >
Encoding:
Text File  |  1998-10-11  |  1.5 KB  |  111 lines  |  [TEXT/CWIE]

  1. // DModalStuffData.cp -- data container class for Everything
  2.  
  3. #include "DModalStuffData.h"
  4.  
  5. #include <LFileStream.h>
  6.  
  7.  
  8. //----------
  9. DModalStuffData::DModalStuffData ()
  10. {
  11.     mTools2 = 0;
  12.     mFromValuesList3 = 0;
  13.     mFromMenu2 = 0;
  14.     mTextList2 = 0;
  15. }
  16.  
  17. //----------
  18. DModalStuffData::~DModalStuffData ()
  19. {
  20. }
  21.  
  22. //----------
  23. void    DModalStuffData::CopyFrom (
  24.     DModalStuffData*        inOther)
  25. {
  26.     mTools2 = inOther->mTools2;
  27.     mFromValuesList3 = inOther->mFromValuesList3;
  28.     mFromMenu2 = inOther->mFromMenu2;
  29.     mTextList2 = inOther->mTextList2;
  30. }
  31.  
  32. //----------
  33. void    DModalStuffData::ReadFromFile (
  34.     LFileStream*    inFile)
  35. {
  36. }
  37.  
  38. //----------
  39. void    DModalStuffData::WriteToFile (
  40.     LFileStream*    inFile)
  41. {
  42. }
  43.  
  44.  
  45. //----------
  46. SInt16        DModalStuffData::GetTools2 () const
  47. {
  48.  
  49.     return mTools2;
  50. }
  51.  
  52. //----------
  53. void    DModalStuffData::SetTools2 (
  54.     SInt16        inValue)
  55. {
  56.     mTools2 = inValue;
  57.     
  58.     SignalDataChanged (idTools2);
  59. }
  60.  
  61.  
  62. //----------
  63. SInt16        DModalStuffData::GetFromValuesList3 () const
  64. {
  65.  
  66.     return mFromValuesList3;
  67. }
  68.  
  69. //----------
  70. void    DModalStuffData::SetFromValuesList3 (
  71.     SInt16        inValue)
  72. {
  73.     mFromValuesList3 = inValue;
  74.     
  75.     SignalDataChanged (idFromValuesList3);
  76. }
  77.  
  78.  
  79. //----------
  80. SInt16        DModalStuffData::GetFromMenu2 () const
  81. {
  82.  
  83.     return mFromMenu2;
  84. }
  85.  
  86. //----------
  87. void    DModalStuffData::SetFromMenu2 (
  88.     SInt16        inValue)
  89. {
  90.     mFromMenu2 = inValue;
  91.     
  92.     SignalDataChanged (idFromMenu2);
  93. }
  94.  
  95.  
  96. //----------
  97. SInt16        DModalStuffData::GetTextList2 () const
  98. {
  99.  
  100.     return mTextList2;
  101. }
  102.  
  103. //----------
  104. void    DModalStuffData::SetTextList2 (
  105.     SInt16        inValue)
  106. {
  107.     mTextList2 = inValue;
  108.     
  109.     SignalDataChanged (idTextList2);
  110. }
  111.